﻿<%@ Page Language="C#" MasterPageFile="~/Design/MasterPage/MasterPage.master" ValidateRequest="false"
    AutoEventWireup="true" CodeFile="SaleProcessIndefinForm.aspx.cs" Inherits="App_Input_SaleProcessIndefinForm"
    Title="资格审核" %>
<%@ Register TagPrefix="shpm" TagName="TipBar" Src ="~/App/Input/SaleProcessTipBar.ascx" %>
<%@ Register Assembly="ShpmCommon" Namespace="Shpm.System.Web.Control" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
<script language="javascript" src="../../javascript/WebCalendar.js"></script>
    <script language="javascript">
        function openPersonDetails(pattern){
            var url  = "../Commons/CustomerDetailForm.aspx";          
            var personId = '';
	        var prm  = '';
	        if (1 == pattern){
	            personId = '<%=Label1.Text%>';	            
	        } else if (2 == pattern){
	            personId = '<%=Label2.Text%>';	            
	        } else if (3 == pattern){
                personId = '<%=Label3.Text%>';	                  
	        }	        
	        var prm  = "?PERSON_ID=" + personId;	        
	        url += prm;	        
	        var win = window.open(url,"PersonViewForm" + pattern,'scrollbars,resizable');	        
	        win.focus();
        }
        function openPhysicalDetails(pattern){
            var url  = "../Commons/PhysicalRegistePopForm.aspx";
            var physicalId = '';
	        var prm  = '';
	        if (1 == pattern){	            
	            physicalId = '<%=lblPhysicalIdMain.Text%>';
	        } else if (2 == pattern){	            
	            physicalId = '<%=lblPhysicalIdAsst.Text%>';
	        } else if (3 == pattern){                
	            physicalId = '<%=lblPhysicalIdComp.Text%>';	        
	        }
	        prm  = "?PHYSICAL_ID=" + physicalId;		                
	        url += prm;	        
	        var win = window.open(url,"PhysicalViewForm" + pattern,'scrollbars,resizable');
	        win.focus();
        }        
    </script>

    <cc1:ComValidator ID="ComValidator1" runat="server" ForeColor="White" CheckItems-Capacity="4">
    </cc1:ComValidator>
    <div id="container" >
        <div id="title" >
            <ul>
                <li id="tag1" style="display:none;">
                    <asp:LinkButton ID="LinkButton1" OnCommand="lnkTab_Command" CommandName="btn0" runat="server" Enabled="false"><span>新建</span></asp:LinkButton>
                </li>
                <li id="tag2">
                    <asp:LinkButton ID="LinkButton2" OnCommand="lnkTab_Command" CommandName="btn1" runat="server"><span>销售管理</span></asp:LinkButton>
                </li>
                <li id="tag4">
                    <asp:LinkButton ID="LinkButton4" OnCommand="lnkTab_Command" CommandName="btn3" runat="server"><span>购卡管理</span></asp:LinkButton>
                </li>
                <li id="tag3">
                    <asp:LinkButton ID="LinkButton3" OnCommand="lnkTab_Command" CommandName="btn2" runat="server"
                        ><span>入住信息</span></asp:LinkButton>
                </li>      
                <li id="Li6">
                    <asp:LinkButton ID="LinkButton11" OnCommand="lnkTab_Command" CommandName="btn6" runat="server" OnClientClick="return false;" CssClass="selectli"><span class="selectspan">资格审核</span></asp:LinkButton>
                </li>          
                <li id="tag5">
                    <asp:LinkButton ID="LinkButton5" OnCommand="lnkTab_Command" CommandName="btn4" runat="server"><span>入住管理</span></asp:LinkButton>
                </li>
            </ul>
            <ul style="display:none">
                <li id="Li1">
                    <asp:LinkButton ID="LinkButton6" OnCommand="lnkTab_Command" CommandName="btn2_1"
                        runat="server"><span>主会员</span></asp:LinkButton></li><li id="Li2">
                            <asp:LinkButton ID="LinkButton7" OnCommand="lnkTab_Command" CommandName="btn2_2"
                                runat="server"><span>副会员</span></asp:LinkButton></li><li id="Li3">
                                    <asp:LinkButton ID="LinkButton8" OnCommand="lnkTab_Command" CommandName="btn2_3"
                                        runat="server"><span>陪住人</span></asp:LinkButton>
                                </li>
                <li id="Li4">
                    <asp:LinkButton ID="LinkButton9" OnCommand="lnkTab_Command" CommandName="btn2_4"
                        runat="server"><span>体检报告</span></asp:LinkButton>
                </li>                              
                <li id="Li7">
                    <asp:LinkButton ID="LinkButton12" OnCommand="lnkTab_Command" CommandName="btn2_7"
                        runat="server"><span>特点</span></asp:LinkButton>
                </li>
                 <li id="Li5">
                    <asp:LinkButton ID="LinkButton10" OnCommand="lnkTab_Command" CommandName="btn2_5"
                        runat="server" CssClass="selectli" OnClientClick="return false;"><span class="selectspan">审核</span></asp:LinkButton>
                </li>
            </ul>
        </div>
        
        <div id="content" class="content1" style="display:none;">
        
            <table width="100%">
                <tr>
                    <td>
                        <table class="table_border_line">
                            <tr>
                                <th align="left" colspan="6" style="text-align: left;">

                                    <script language="javascript">
                                        (new TitleBar('SearchBar', '入住审核登记')).showBar();
                                    </script>

                                </th>
                            </tr>
                        </table>
                        <table class="table_border_line" style="background: ffffff">
                            <tr>
                                <td style="width: 2%; height: 20px"></td>
                                <td align="left" class="" nowrap="nowrap" style="width: 16%; height: 25px">员工姓名：</td>
                                <td align="left" style="width: 80%" class="">&nbsp;<asp:Label ID="lblEmpId" runat="server"></asp:Label></td>
                                <td align="right" colspan="3"></td>
                            </tr>
                            <tr style="display: none">
                                <td style="width: 2%; height: 20px"></td>
                                <td align="left" class="" nowrap style="width: 16%; height: 25px">销售编号：</td>
                                <td align="left" style="width: 80%" class="">&nbsp;<asp:Label ID="lblProcId" runat="server"></asp:Label></td>
                                <td align="right" colspan="3"></td>
                            </tr>
                            <tr>
                                <td style="width: 2%; height: 20px">&nbsp;</td>
                                <td style="width: 16%; height: 25px" class="" nowrap>会员姓名（主）：</td>
                                <td style="" align="left" class="">&nbsp;<asp:Label ID="lblPersonMain" runat="server"
                                    Width="155px"></asp:Label><asp:Label ID="Label1" runat="server" Width="10px" Visible="False"></asp:Label><asp:Label
                                        ID="lblPhysicalIdMain" runat="server" Width="100px"></asp:Label><asp:Button ID="btnPsnDtl1"
                                            runat="server" Text="人员详细" OnClientClick="javascript:return openPersonDetails(1);" />&nbsp;
                                    <asp:Button ID="btnRptDtl1" runat="server" Text="报告详细" OnClientClick="javascript:return openPhysicalDetails(1);" /></td>
                                <td colspan="3" align="right">&nbsp;</td>
                            </tr>
                            <tr>
                                <td style="width: 2%; height: 20px">&nbsp;</td>
                                <td class="" nowrap style="width: 16%; height: 25px">会员姓名（副）：</td>
                                <td class="">&nbsp;<asp:Label ID="lblPersonAsst" runat="server" Width="155px"></asp:Label><asp:Label
                                    ID="Label2" runat="server" Visible="False" Width="10px"></asp:Label><asp:Label ID="lblPhysicalIdAsst"
                                        runat="server" Width="100px"></asp:Label><asp:Button ID="btnPsnDtl2" runat="server"
                                            Text="人员详细" OnClientClick="javascript:return openPersonDetails(2);" />&nbsp;
                                    <asp:Button ID="btnRptDtl2" runat="server" Text="报告详细" OnClientClick="javascript:return openPhysicalDetails(2);" /></td>
                                <td colspan="3" align="right">&nbsp;</td>
                            </tr>
                            <tr>
                                <td style="width: 2%; height: 20px"></td>
                                <td class="" nowrap="nowrap" style="width: 16%; height: 25px">陪住人姓名：</td>
                                <td class="">&nbsp;<asp:Label ID="lblPersonComp" runat="server" Width="155px"></asp:Label><asp:Label
                                    ID="Label3" runat="server" Visible="False" Width="10px"></asp:Label><asp:Label ID="lblPhysicalIdComp"
                                        runat="server" Width="100px"></asp:Label><asp:Button ID="btnPsnDtl3" runat="server"
                                            Text="人员详细" OnClientClick="javascript:return openPersonDetails(3);" />&nbsp;
                                    <asp:Button ID="btnRptDtl3" runat="server" Text="报告详细" OnClientClick="javascript:return openPhysicalDetails(3);" /></td>
                                <td align="right" colspan="3"></td>
                            </tr>
                            <tr>
                                <td style="width: 2%; height: 20px"></td>
                                <td class="" nowrap="nowrap" style="width: 16%; height: 25px">审核人员：</td>
                                <td class="">&nbsp;<asp:Label ID="lblCurUser" runat="server"></asp:Label></td>
                                <td align="right" colspan="3"></td>
                            </tr>
                            <tr>
                                <td style="width: 2%; height: 20px"></td>
                                <td class="" nowrap="nowrap" style="width: 16%; height: 25px">审核日期：</td>
                                <td>&nbsp;<asp:TextBox ID="txtAuditingDate" runat="server" Width="71px" onfocus="new Calendar(1900,2015,0,null).show(this);" ></asp:TextBox></td>
                                <td align="right" colspan="3"></td>
                            </tr>
                            <tr>
                                <td style="width: 2%; height: 20px"></td>
                                <td class="" nowrap="nowrap" style="width: 16%; height: 25px">审核意见：</td>
                                <td>&nbsp;<asp:TextBox ID="txtOpinion" runat="server" MaxLength="512" Rows="5" TextMode="MultiLine"
                                    Width="234px"></asp:TextBox></td>
                                <td align="right" colspan="3"></td>
                            </tr>
                            <tr>
                                <td style="width: 2%; height: 20px"></td>
                                <td class="" nowrap="nowrap" style="width: 16%; height: 25px">审核批准：</td>
                                <td class="">
                                    <asp:CheckBox ID="ckbPass" runat="server" Text="批准" Width="52px" /></td>
                                <td align="right" colspan="3"></td>
                            </tr>
                            <tr>
                                <td style=""></td>
                                <td colspan="2" align="center"></td>
                                <td colspan="3" align="right">&nbsp;</td>
                            </tr>
                        </table>
                    </td>
                </tr>
                <tr>
                    <td align="center" style="height: 12px">
                    <asp:Button ID="btnOk" runat="server" Text="  登 记  " CssClass="button" OnClick="btnOk_Click" />
                        <asp:Button ID="Button1" runat="server" Text="提交审核" CssClass="button" OnClientClick="javascript:return false;" Width="95px" /></td>
                </tr>
            </table>
        </div>
    
    
    <div id="Div1" class="content1" >
        <shpm:TipBar runat="server" ID="tipBar" />
        
    <table class="table_border_line" style="background: ffffff">
    <tr>
    <td>
    <table class="table_border_line">
                            <tr>
                                <th align="left" colspan="6" style="text-align: left;">

                                    <script language="javascript">
                                        (new TitleBar('SearchBar', '入住审核登记')).showBar();
                                    </script>

                                </th>
                            </tr>
                        </table>
    </td>
    </tr>
        <tr>
            <td style="height: 13px">
            </td>
        </tr>
        <tr>
        <td>
        <table class="table_border_line">
                            <tr>
                            <td style="width: 161px; height: 39px">
                                <asp:Label ID="Label4" runat="server" Height="16px" Width="72px">主会员姓名：</asp:Label>
                                <asp:Label ID="labelName" runat="server" Height="16px" Width="57px"></asp:Label></td>
                            <td style="width: 161px; height: 39px">
                                <asp:Label ID="Label5" runat="server" Height="16px" Width="71px">副会员姓名：</asp:Label>
                                <asp:Label ID="labelSecondaryName" runat="server" Height="16px" Width="57px"></asp:Label></td>
                                <td style="width: 214px; height: 39px">
                                    <asp:Label ID="Label6" runat="server" Height="16px" Width="73px">陪住人姓名：</asp:Label>
                                    <asp:Label ID="labelAccompanyName" runat="server" Height="16px" Width="57px"></asp:Label></td>
                                <td style="width: 98px; height: 39px">
                                    </td>
                                <td style="height: 39px">
                                </td>
                            </tr>
          </table>
        
        </td>
        </tr>
    <tr>
      <td >
                                      人员类别：<asp:RadioButtonList ID="memberRadio" runat="server" RepeatDirection="Horizontal" AutoPostBack="True" OnSelectedIndexChanged="memberRadio_SelectedIndexChanged" >
                                          <asp:ListItem  Value="0">主会员</asp:ListItem>
                                          <asp:ListItem Value="1">副会员</asp:ListItem>
                                          <asp:ListItem Value="2">陪住人</asp:ListItem>
                                      </asp:RadioButtonList></td>
                              </tr>
    <tr>
    <td>
    <asp:Table BorderWidth="0" CssClass="GridView_table" id="TblSale" runat="server">
      <asp:TableRow>
      <asp:TableHeaderCell HorizontalAlign="left" CssClass="GridView_head_grayblue"  Width="70">
        <b>编号</b>
        </asp:TableHeaderCell>
        <asp:TableHeaderCell HorizontalAlign="left" CssClass="GridView_head_grayblue"  Width="190">
        <b>部门</b>
        </asp:TableHeaderCell>
        <asp:TableHeaderCell HorizontalAlign="left" CssClass="GridView_head_grayblue"  Width="170">
        <b>审核人</b>
        </asp:TableHeaderCell>
        <asp:TableHeaderCell HorizontalAlign="left" CssClass="GridView_head_grayblue"  Width="70">
        <b>审批</b>
        </asp:TableHeaderCell>
        <asp:TableHeaderCell HorizontalAlign="left" CssClass="GridView_head_grayblue"  >
        <b>备注</b>
        </asp:TableHeaderCell>
      </asp:TableRow>
    </asp:Table>
    </td>
    </tr>
    </table>
    
    
    <table class="table_border_line" style="background: ffffff">
        <tr>
            <td align="center" style="height: 18px">
            </td>
        </tr>
    <tr>
    <td align="center" style="height: 12px">
                        <asp:Button ID="btnSave" runat="server" Text="  登 记  " CssClass="button" OnClick="btnSave_Click" />
                        </td>
                
     </tr>
        <tr>
            <td align="center" style="height: 4px">
            </td>
        </tr>
            </table>
            </div>
            </div>
    <!--**************************************************-->
    <!--销售过程跟踪-->
    <%-- 
    <table class="table_border_line">
        <tr>
            <th align="left" colspan="8" style="text-align: left;">

                <script language="javascript">
                                        (new TitleBar('SearchBar1', '销售过程跟踪:')).showBar();
                </script>

            </th>
        </tr>
    </table>
    <table class="table_border_line" style="background: ffffff">
        <tr>
            <td></td>
            <td></td>
            <td></td>
            <td></td>
            <td></td>
            <td></td>
            <td></td>
            <td></td>
        </tr>
        <tr>
            <td style="" class="">
                <asp:LinkButton ID="lnkBtn0" runat="server" OnCommand="lnkBtn_Command" CommandName="btn0"
                    ForeColor="Green">&nbsp;&nbsp;新建登记－〉</asp:LinkButton></td>
            <td style="" class="">
                <asp:LinkButton ID="lnkBtn1" runat="server" OnCommand="lnkBtn_Command" CommandName="btn1"
                    ForeColor="Green">&nbsp;销售记录－〉</asp:LinkButton></td>
            <td style="" class="">
                <asp:LinkButton ID="lnkBtn3" runat="server" OnCommand="lnkBtn_Command" CommandName="btn3"
                    ForeColor="Red" OnClientClick="javascript:return false;">&nbsp;提交审核－〉</asp:LinkButton></td>
            <td style="display: none" class="">
                <asp:LinkButton ID="lnkBtn2" runat="server" Enabled="False" OnCommand="lnkBtn_Command"
                    CommandName="btn2">&nbsp;体检－〉</asp:LinkButton></td>
            <td style="" class="">
                <asp:LinkButton ID="lnkBtn4" runat="server" Enabled="False" OnCommand="lnkBtn_Command"
                    CommandName="btn4">&nbsp;签订合同－〉</asp:LinkButton></td>
            <td style="" class="">
                <asp:LinkButton ID="lnkBtn5" runat="server" Enabled="False" OnCommand="lnkBtn_Command"
                    CommandName="btn5">&nbsp;财务收费－〉</asp:LinkButton></td>
            <td style="" class="">
                <asp:LinkButton ID="lnkBtn6" runat="server" Enabled="False" OnCommand="lnkBtn_Command"
                    CommandName="btn6">&nbsp;移交资料</asp:LinkButton></td>
            <td style="display: none" class="">
                <asp:LinkButton ID="lnkBtn7" runat="server" Enabled="False" OnCommand="lnkBtn_Command"
                    CommandName="btn7">&nbsp;完成</asp:LinkButton>
            </td>
        </tr>
        <tr>
            <td style=""></td>
            <td style=""></td>
            <td style=""></td>
            <td style=""></td>
            <td style=""></td>
            <td style=""></td>
            <td style=""></td>
            <td style=""></td>
        </tr>
    </table>
    --%>
</asp:Content>
